package edu.zut.cs.network.exercise.practice.object;

public class Phone {

	String brand;
	String color;
	Long id;
	int price;
	
	
	public Phone(String brand, String color, Long id, int price) {
		super();
		this.brand = brand;
		this.color = color;
		this.id = id;
		this.price = price;
	}
	
	public String getBrand() {
		return brand;
	}
	public void setBrand(String brand) {
		this.brand = brand;
	}
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public int getPrice() {
		return price;
	}
	public void setPrice(int price) {
		this.price = price;
	}
	
	@Override
	public String toString() {
		return "手机品牌：" + brand + ", 颜色：" + color + ", ID：" + id + ", 价格：" + price + "。";
	}
	
	
}
